package com.yc.pre.mapper.primary;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.pre.entity.bean.PreDataPool;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @ClassName PreDataPoolMapper
 * @Description 数据池mapper
 * @Date 2021/02/22 10:42:13
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
public interface PreDataPoolMapper extends BaseMapper<PreDataPool> {
    Integer updateByIds(@Param("list") List<PreDataPool> changeDatas);

    @Select("select id, " +
            "title, " +
            "auction_status, " +
            "collateral_status, " +
            "house_land_type, " +
            "building_area, " +
            "document_find_status, " +
            "document_case_number, " +
            "document_link_address, " +
            "document_in_attach, " +
            "obligors from pre_data_pool"
    )
    List<PreDataPool> selectAllDatas();
}
